/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.teacher;

import java.util.List;

import com.idenger.modules.edu.dao.teacher.EduTeacherInfoDao;
import com.idenger.modules.edu.entity.teacher.EduTeacherInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;

/**
 * 教师Service
 * @author chenlin
 * @version 2017-11-28
 */
@Service
@Transactional(readOnly = true)
public class EduTeacherInfoService extends CrudService<EduTeacherInfoDao, EduTeacherInfo> {

	public EduTeacherInfo get(String id) {
		return super.get(id);
	}
	
	public List<EduTeacherInfo> findCourseTeacherDetailByCourseId(String id) {
		return dao.findCourseTeacherDetailByCourseId(id);
	}
	
	public List<EduTeacherInfo> findList(EduTeacherInfo eduTeacherInfo) {
		return super.findList(eduTeacherInfo);
	}
	
	public Page<EduTeacherInfo> findPage(Page<EduTeacherInfo> page, EduTeacherInfo eduTeacherInfo) {
		return super.findPage(page, eduTeacherInfo);
	}
	
	@Transactional(readOnly = false)
	public void save(EduTeacherInfo eduTeacherInfo) {
		super.save(eduTeacherInfo);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduTeacherInfo eduTeacherInfo) {
		super.delete(eduTeacherInfo);
	}
	
	public String teacherCount(){
		return dao.teacherCount();
	}
	
}